// FetionLoginBox.h
// Heihaier <admin@heihaier.org>
// http://www.heihaier.org

#ifndef __FETION_LOGIN_BOX_H__
#define __FETION_LOGIN_BOX_H__

#include <gtkmm.h>
#include <libfetion.h>

class FetionLoginBox : public Gtk::VBox
{
public:
	FetionLoginBox();
	~FetionLoginBox();

	sigc::signal <void, int, WPARAM, LPARAM> signal_login_msg;
private:
	Gtk::Button * m_pLogin;
	Gtk::Entry * m_pID;
	Gtk::Entry * m_pPassword;
	Gtk::Label * m_pShow;
	Gtk::ComboBoxText * m_pStatus;
	Gtk::CheckButton * m_pRemPWD;

	void on_login();
	void on_login_cancel();
	void on_login_msg(int message, WPARAM wParam, LPARAM lParam);
};

#endif // __FETION_LOGIN_BOX_H__
